{template 'admin','header'}
<script type="text/javascript">
// <![CDATA[
function copy_clip(copy){
if (window.clipboardData){
window.clipboardData.setData("Text", copy);}
else if (window.netscape){
netscape.security.PrivilegeManager.enablePrivilege('UniversalXPConnect');
var clip = Components.classes['@mozilla.org/widget/clipboard;1'].createInstance(Components.interfaces.nsIClipboard);
if (!clip) return;
var trans = Components.classes['@mozilla.org/widget/transferable;1'].createInstance(Components.interfaces.nsITransferable);
if (!trans) return;
trans.addDataFlavor('text/unicode');
var str = new Object();
var len = new Object();
var str = Components.classes["@mozilla.org/supports-string;1"].createInstance(Components.interfaces.nsISupportsString);
var copytext=copy;
str.data=copytext;
trans.setTransferData("text/unicode",str,copytext.length*2);
var clipid=Components.interfaces.nsIClipboard;
if (!clip) return false;
clip.setData(trans,null,clipid.kGlobalClipboard);}
alert('代码已复制完毕');
return false;
}
// ]]>
</script>

<table class="table_form">
	<caption>获取广告代码</caption>
	<tr><th width="20%">广告代码</th><td><input type="text" id="code" size="80" value="{$str}"></td></tr>
	<tr><th></th><td><input type="button" value=" 复制代码到剪贴板 " onclick="copy_clip(document.getElementById('code').value)" class="button_style">&nbsp;<input type="button" class="button_style" onclick="self.location='{urldecode($forward)}'" value=" 返回 "></td></tr>
</table>
{template 'admin','footer'}